package com.example.wlzz.repository.mongoRepository;

import com.example.wlzz.entity.mongoEntity.Comment;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface CommentRepository extends MongoRepository<Comment,String> {
     Comment findBy_idAndDelFlag(String _id,int del_flag);
     Page<Comment> findByTaskIdAndDelFlag(String taskId,int del_flag,Pageable pageable);
}
